<%@ page language="java" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="m" uri="/cutm_tags"%>
<html>
<head>
<title>角色列表</title>
</head>
<body>
<h2 class="title"><span class="h2">角色列表</span><m:imgA img="add" msg="添加新的角色" action="system/EditRole!toEdit" /></h2>
<table class="list">
	<tr>
		<th width="10%">角色编号</th>
		<th width="30%">角色名称</th>
		<th width="10%">是否可用</th>
		<th width="40%">角色描述</th>
		<th width="10%">操作</th>
	</tr>
	<s:iterator value="roles.items">
		<tr>
			<td><s:property value="id" /></td>
			<td><s:property value="name" /></td>
			<td><s:if test="enable">可用</s:if><s:else>已禁用</s:else></td>
			<td><s:property value="desc" /></td>
			<td><m:imgA img="edit" msg="编辑角色" action="system/EditRole!toEdit?role.id=${id}" /></td>
		</tr>
	</s:iterator>
</table>
<m:page value="${roles}" showSeaBar="true" />
</body>
</html>